﻿<?xml version="1.0"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
	<xsl:template match="/">
	
	<div id="datosgrales" class="datosgrales">		
			<H1><xsl:value-of  select="file/annio"/></H1>
	 	 <span class="leyenda">Censo electoral:</span><xsl:value-of  select="file/censo"/> censados<br />
	 	 <span class="leyenda">Participación %:</span><xsl:value-of  select="file/part"/>
	</div>	
	
	
	<div class="electionNews_main_newsArea">
							<div class="electionNews_main_newsArea_secondLayer">
								<div class="electionNews_main_newsArea_thirdLayer">
								
									<div class="divTablaDatos">	
									
									
		<!-- contenido de datos dinámicos -->
		<table id="tablaInternaDatos" class="tablaDatos" cellpadding="0" cellspacing="0"  width="100%">
		<tr>
			<th class="t1" align="left" >Candidatura</th><th class="t2" align="center">Votos</th><th class="t3" align="center" nowrap="nowrap">% Válidos</th><th class="t4" align="center">Escaños</th>	
		</tr>
	


<!-- pintar fondo de la tabla  -->
<xsl:for-each select="file/datos">			
	 <xsl:if test="position() mod 2=1">  
	<tr  valign="middle" bgcolor="#EFF4FA">  	
		
		<td align="left" width="60" style="background-image:url(http://youchoose.googlecode.com/svn/Maps/img/{imgColor}); background-repeat:no-repeat; background-position:2px 4px; padding: 0 0 0 12px;">
				<!--<div id="cand"> -->				
					
					<xsl:text disable-output-escaping="yes"></xsl:text>
					<xsl:value-of  select="cand"/>						
						
				<!--	</div> -->
		</td>			
		<td align="center">
		<!--	<div id="votos"> -->
						<xsl:value-of  select="votos"/>					
		<!--			</div> -->
		</td>			
		<td align="center">
		<!--	<div id="validos"> -->
						<xsl:value-of  select="validos"/>					
		<!--			</div> -->
		</td>			
		<td align="center">
		<!--	<div id="diputados"> -->
						<xsl:value-of  select="diputados"/>					
		<!--			</div> -->
		</td>
		
  </tr>
 </xsl:if>
 <xsl:if test="position() mod 2 !=1">  
	    <tr  valign="middle" bgcolor="#FFFFFF">  
		  <td align="left" width="60" style="background-image:url(http://youchoose.googlecode.com/svn/Maps/img/{imgColor}); background-repeat:no-repeat; background-position:2px 4px; padding: 0 0 0 12px;">
		    <!--<div id="cand"> -->    
		     
		     <xsl:text disable-output-escaping="yes"></xsl:text>
		     <xsl:value-of  select="cand"/>      
		      
		    <!-- </div> -->
		  </td>   
		  <td align="center">
		  <!-- <div id="votos"> -->
		      <xsl:value-of  select="votos"/>     
		  <!--   </div> -->
		  </td>   
		  <td align="center">
		  <!-- <div id="validos"> -->
		      <xsl:value-of  select="validos"/>     
		  <!--   </div> -->
		  </td>   
		  <td align="center">
		  <!-- <div id="diputados"> -->
		      <xsl:value-of  select="diputados"/>     
		  <!--   </div> -->
		  </td>
		  
	   </tr> 
	
	 </xsl:if>
</xsl:for-each>
  </table> 
	</div>

<!-- FIN contenido de datos dinámicos dinámico-->

								
								</div>
							</div>
	</div>			
					
					
	
	</xsl:template>
</xsl:transform>
 
        	      


 
